<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Taskflow Handbook</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname"><a href="https://taskflow.github.io/">Taskflow</a>
   &#160;<span id="projectnumber">3.0.0-Master-Branch</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('release-2-6-0.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Release 2.6.0 (2020/08/25) </div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p>Taskflow 2.6.0 is the 8th release in the 2.x line! This release includes several new changes such as CPU-GPU tasking, algorithm collection, enhanced web-based profiler, documentation, and unit tests.</p>
<p>We have a new <a href="https://taskflow.github.io/">webpage</a> for Taskflow!</p>
<h1><a class="anchor" id="release-2-6-0_download"></a>
Download</h1>
<p>Taskflow 2.6.0 can be downloaded from <a href="https://github.com/taskflow/taskflow/releases/tag/v2.6.0">here</a>.</p>
<h1><a class="anchor" id="release-2-6-0_new_features"></a>
New Features</h1>
<ul>
<li>added explicit join behavior of <a class="el" href="classtf_1_1Subflow.html" title="class to construct a subflow graph from the execution of a dynamic task ">tf::Subflow</a> (see <a class="el" href="chapter3.html#JoinASubflow">Join a Subflow</a> and <a class="el" href="fibonacci.html">Fibonacci Number</a>) </li>
<li>added version macro (<code>TF_VERSION</code>, <code>TF_MAJOR_VERSION</code>, <code>TF_MINOR_VERSION</code>, <code>TF_PATCH_VERSION</code>) to retrieve version info programmatically (tf::version) </li>
<li>added <code>TF_BUILD_TESTS</code> and <code>TF_BUILD_EXAMPLES</code> (default on) to let users disable the build of tests and examples (see <a class="el" href="install.html#BAIConfigureCMakeOptions">Configure CMake Options</a>) </li>
<li>renamed tf::Taskflkow::parallel_for to <a class="el" href="classtf_1_1FlowBuilder.html#a564252001be679600b20ca9ed9920f6a" title="constructs a STL-styled parallel-for task ">tf::Taskflow::for_each</a> to follow the STL convention </li>
<li>redesigned <a class="el" href="classtf_1_1FlowBuilder.html#a564252001be679600b20ca9ed9920f6a" title="constructs a STL-styled parallel-for task ">tf::Taskflow::for_each</a> and <a class="el" href="classtf_1_1FlowBuilder.html#ab8417b211b18bb1e0f45a049331f084d" title="constructs an index-based parallel-for task ">tf::Taskflow::for_each_index</a> using OpenMP-styled scheduling algorithms; this redesign largely improved the performance of parallel-for using a single dynamic task return, but it breaks the previous API that returned a <a class="elRef" doxygen="/Users/twhuang/PhD/Code/taskflow/doxygen/cppreference-doxygen-web.tag.xml:http://en.cppreference.com/w/" href="http://en.cppreference.com/w/cpp/utility/pair.html">std::pair</a> of tasks to synchronize on a set of static parallel-for tasks. Yet, we believe adopting this change is not difficult (see <a class="el" href="A1ForEach.html">Parallel Iterations</a>). <div class="fragment"><div class="line"><span class="comment">// index-based parallel-for in the range [0, 100) with the step size equal to one</span></div><div class="line"><a class="code" href="classtf_1_1Task.html">tf::Task</a> task1 = taskflow.for_each_index(0, 100, 1, </div><div class="line">  [](<span class="keywordtype">int</span> <span class="keywordtype">id</span>) { <a class="codeRef" doxygen="/Users/twhuang/PhD/Code/taskflow/doxygen/cppreference-doxygen-web.tag.xml:http://en.cppreference.com/w/" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;parallel for on index&quot;</span> &lt;&lt; <span class="keywordtype">id</span> &lt;&lt; <span class="charliteral">&#39;\n&#39;</span>; }</div><div class="line">);</div><div class="line"></div><div class="line"><span class="comment">// iterator-based parallel-for in the range [first, last)</span></div><div class="line"><a class="code" href="classtf_1_1Task.html">tf::Task</a> task2 = taskflow.for_each(first, last, </div><div class="line">  [](<span class="keyword">auto</span> item) { <a class="codeRef" doxygen="/Users/twhuang/PhD/Code/taskflow/doxygen/cppreference-doxygen-web.tag.xml:http://en.cppreference.com/w/" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> &lt;&lt; <span class="stringliteral">&quot;parallel for on object &quot;</span> &lt;&lt; item &lt;&lt; <span class="charliteral">&#39;\n&#39;</span>; }</div><div class="line">);</div></div><!-- fragment --> </li>
<li>added multiple unit tests for <a class="el" href="classtf_1_1FlowBuilder.html#a564252001be679600b20ca9ed9920f6a" title="constructs a STL-styled parallel-for task ">tf::Taskflow::for_each</a> and <a class="el" href="classtf_1_1FlowBuilder.html#ab8417b211b18bb1e0f45a049331f084d" title="constructs an index-based parallel-for task ">tf::Taskflow::for_each_index</a> at different partition algorithms; we have implemented our partition algorithms based on the OpenMP library implementation of LLVM and GCC. </li>
<li>added Mandelbrot application in the benchmark to evaluate the performance of parallel-for </li>
<li>redesigned <a class="el" href="classtf_1_1FlowBuilder.html#ad999cd75045db225a42d5881d6db1223" title="constructs a STL-styled parallel-reduce task ">tf::Taskflow::reduce</a> and <a class="el" href="classtf_1_1FlowBuilder.html#ad8d03524f15292610ebee63d53b89579" title="constructs a STL-styled parallel transform-reduce task ">tf::Taskflow::transform_reduce</a> based on the parallel architecture of <a class="el" href="classtf_1_1FlowBuilder.html#a564252001be679600b20ca9ed9920f6a" title="constructs a STL-styled parallel-for task ">tf::Taskflow::for_each</a> (see <a class="el" href="A2Reduce.html">Parallel Reduction</a>).</li>
</ul>
<h1><a class="anchor" id="release-2-6-0_bug_fixes"></a>
Bug Fixes</h1>
<ul>
<li>fixed the bug of iteratively detaching a subflow from a run loop or a condition loop (see <a class="el" href="chapter3.html#DetachASubflow">Detach a Subflow</a>) </li>
<li>fixed the bug of conflict macro with boost (<a href="https://github.com/taskflow/taskflow/issues/184">#184</a>)</li>
</ul>
<h1><a class="anchor" id="release-2-6-0_deprecated_items"></a>
Deprecated Items</h1>
<ul>
<li>removed two methods, tf::detached and tf::joined, due to the new join/detach behavior</li>
</ul>
<h1><a class="anchor" id="release-2-6-0_miscellaneous_items"></a>
Miscellaneous Items</h1>
<ul>
<li>improved the section <a class="el" href="chapter2.html#C2_Observer">Observe Thread Activities</a> </li>
</ul>
</div></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="Releases.html">Releases</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
